package spring.command;

import spring.command.base.CommandCenter;
import spring.command.base.Commands;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {
	private CommandCenter mCommandCenter;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        mCommandCenter = new CommandCenter(this);
        Commands.registerCommands(mCommandCenter);
        
    }
    
    public void ButtonBarOnClickHandle(View view){
    	mCommandCenter.execute(new ViewCommander(view));
    }
}